home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qprintdialog.h.z / qprintdialog.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  2.0 KB  |  78 lines

  1. /****************************************************************************
  2. ** $Id: qprintdialog.h,v 2.10 1998/07/03 00:09:29 hanord Exp $
  3. **
  4. ** Definition of print dialog.
  5. **
  6. ** Created : 950829
  7. **
  8. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  9. **
  10. ** This file is part of Qt Free Edition, version 1.40.
  11. **
  12. ** See the file LICENSE included in the distribution for the usage
  13. ** and distribution terms, or http://www.troll.no/free-license.html.
  14. **
  15. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  16. ** your own programs or libraries.
  17. **
  18. ** Please see http://www.troll.no/pricing.html for information about 
  19. ** Qt Professional Edition, which is this same library but with a
  20. ** license which allows creation of commercial/proprietary software.
  21. **
  22. *****************************************************************************/
  23.  
  24. #ifndef QPRINTDIALOG_H
  25. #define QPRINTDIALOG_H
  26.  
  27. #ifndef QT_H
  28. #include "qdialog.h"
  29. #endif // QT_H
  30.  
  31. class QGroupBox;
  32.  
  33.  
  34. struct QPrintDialogPrivate;
  35.  
  36.  
  37. class QPrintDialog : public QDialog
  38. {
  39.     Q_OBJECT
  40. public:
  41.     QPrintDialog( QPrinter *, QWidget *parent=0, const char *name=0 );
  42.     ~QPrintDialog();
  43.  
  44.     static bool getPrinterSetup( QPrinter * );
  45.  
  46.     void setPrinter( QPrinter *, bool = FALSE );
  47.     QPrinter * printer() const;
  48.  
  49. private slots:
  50.     void browseClicked();
  51.     void okClicked();
  52.  
  53.     void printerOrFileSelected( int );
  54.     void landscapeSelected( int );
  55.     void paperSizeSelected( int );
  56.     void orientSelected( int );
  57.     void pageOrderSelected( int );
  58.     void colorModeSelected( int );
  59.     void setNumCopies( int );
  60.     void printRangeSelected( int );
  61.     void setFirstPage( int );
  62.     void setLastPage( int );
  63.  
  64. private:
  65.     QPrintDialogPrivate *d;
  66.  
  67.     QGroupBox * setupDestination();
  68.     QGroupBox * setupOptions();
  69.     QGroupBox * setupPaper();
  70.  
  71. private:    // Disabled copy constructor and operator=
  72.     QPrintDialog( const QPrintDialog & );
  73.     QPrintDialog &operator=( const QPrintDialog & );
  74. };
  75.  
  76.  
  77. #endif // QPRINTDIALOG_H
  78.